package com.hlb.zh.controller;

import com.hlb.zh.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created by Administrator on 2016/12/17.
 */
@Controller
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;
    @RequestMapping("list")
    public  String  list(Map map){
        map.put("obj",employeeService.find());
        return "list";
    }
}
